package yto.freemarker.bootrocketmq.consumer;

import com.dongxing.springbootrocketmqstarter.annotation.RocketMQMessageListener;
import com.dongxing.springbootrocketmqstarter.core.RocketMQListener;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.common.message.MessageExt;

/**
 * @author dongxing
 * @create 2018-08-22 14:18
 **/
@Slf4j
@RocketMQMessageListener(consumerGroup = "test-topic-consumer-1",topic = "test-topic-1",selectorExpress = "*")
public class ConsumerListing  implements RocketMQListener<String> {

    @Override
    public void onMessage(String message, MessageExt messageExt) throws Exception {
        log.info("开始消费数据===============================================》");
        log.info("==========>messages:"+message);
        log.info("《========================================数据消费结束");
    }
}
